//package cn.stu.file.service.impl;
//
//
//import cn.stu.file.mapper.FileSearchRepository;
//import cn.stu.file.service.FileSearchService;
//import lombok.AllArgsConstructor;
//import org.springframework.data.domain.Page;
//import org.springframework.data.domain.PageRequest;
//import org.springframework.data.domain.Pageable;
//import org.springframework.stereotype.Service;
//
///**
// * 文件搜索服务实现类
// *
// * @author 郑志豪
// * @date 2023/09/03
// */
//@Service
//@AllArgsConstructor
//public class FileSearchServiceImpl implements FileSearchService {
//    private final FileSearchRepository fileSearchRepository;
//
////    public FileSearchServiceImpl(FileSearchRepository fileSearchRepository) {
////        this.fileSearchRepository = fileSearchRepository;
////    }
//
//
//    @Override
//    public void saveFile(File file) {
//        fileSearchRepository.save(file);
//    }
//
//    @Override
//    public void deleteFileById(Long id) {
//        fileSearchRepository.deleteById(id);
//    }
//
//    @Override
//    public Page<File> findAllByName(String name, int pageNumber, int pageSize) {
//        Pageable pageable = PageRequest.of(pageNumber, pageSize);
//        return fileSearchRepository.findAllByName(name, pageable);
//    }
//
//}
